package chapter4_4;

/**
 *  数据类型的学习
 * @author dmc
 */
public class MainTest {

  static   byte b1 = 1;
  static   short b2 = 100;
  static   int b3 = 32768;
  static   long b4 = 121232L;
  static   float b5 = 2.5f;
  static double b6 = 2.6;
  static   boolean b7 = true;
  static   char b8 = 'A';


    public static void main(String[] args) {

//        System.out.println(b1);
//        System.out.println(b2);
//        System.out.println(b3);
//        System.out.println(b4);
//        System.out.println(b5);
//        System.out.println(b6);
//        System.out.println(b7);
//        System.out.println(b8);

        int a = 100;
        long b = 1000000L;

        long c = a;

        int d = (int)c;

        float a1 = 2.5F;
        int a2 = (int)a1;
        System.out.println(a2);

    }

}
